package cn.tedu.onlinestore.user.mapper;

import cn.tedu.onlinestore.user.pojo.entity.User;
import cn.tedu.onlinestore.user.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    UserVO selectByUsername(String username);

    void adduser(User user);

    void update(User user);

    UserVO selectUserById(Long userId);

    List<UserVO> getAllUser(@Param("page") Integer page,@Param("size") Integer size);
}
